package cn.yyh.serviceProduct.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: Product
 * @Package: cn.yyh.serviceProduct.domain
 * @date 2021/7/12
 */
@Data
public class Product {
    private Long id;
    private String name;
    private String resources;
    private BigDecimal saleprice;
    private Date offsaletime = new Date();
    private Date onsaletime;
    private Long state = 0L; // 0下架,1上架
    private String costprice;
    private Date createtime = new Date();
    private Long salecount;
    private Long shopId;

    private Shop shop;
    private ProductDetail detail;
    private List<ProductComment> comm;

}
